﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BLL;
using Public;

namespace QLNhanKhau
{
    public partial class frmLyDo : Form
    {
        public frmLyDo()
        {
            InitializeComponent();
        }
        public byte _success;
        private void frmLyDo_Load(object sender, EventArgs e)
        {
            cmbLyDoXoa.DataSource = LyDoBLL.LoadLyDo();
            cmbLyDoXoa.DisplayMember = "TenLyDo";
            cmbLyDoXoa.ValueMember = "MaLD";
        }

        private void btnXoa_Click(object sender, EventArgs e)
        {
            _success = (byte)cmbLyDoXoa.SelectedValue;
            this.Close();
        }

        private void btnHuyBo_Click(object sender, EventArgs e)
        {
            _success = 0;
            this.Close();
        }
    }
}
